import {
	createApp
} from 'vue'
import App from './App.vue'
import i18nPlugin from './plugins/i18n'
import router from './mainrouter'

const app = createApp(App)
app.use(router)
app.use(i18nPlugin, {
	greetings: {
		hello: 'Bonjour!'
	}
})
app.directive('v-color', (el, binding) => {
	// 这会在 `mounted` 和 `updated` 时都调用
	el.style.color = binding.value
})
app.mount('#app')